package com.tmt.im.service.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/8/30 17:17
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "入群审核策略变更请求对象", description = "入群审核策略变更请求对象")
public class SessionJoinModeRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = 4485332217885851387L;

    @Schema(requiredMode = REQUIRED, description = "群组ID")
    @NotNull(message = "群组ID不允许为null")
    private Long tid;

    @Schema(requiredMode = REQUIRED, description = "0，不用验证；1，需要群主或管理员的验证")
    @NotNull(message = "入群审核策略参数不允许为null")
    @Min(value = 0, message = "入群审核策略参数值不能小于0")
    @Max(value = 1, message = "入群审核策略参数值不能大于1")
    private Integer joinMode;

}
